/**
 *
 * 去掉多余'-',进位补0
 */
export function replaceStr(str) {
    let newStr = [];
    newStr[0] = str.split("-")[0];
    let lengthOne = str.split("-")[1].length;
    let lengthTwo = str.split("-")[2].length;
    switch (lengthOne) {
      case 1:
        newStr[1] = "000" + str.split("-")[1];
        break;
      case 2:
        newStr[1] = "00" + str.split("-")[1];
        break;
      case 3:
        newStr[1] = "0" + str.split("-")[1];
        break;
      case 4:
        newStr[1] = str.split("-")[1];
        break;
    }
    switch (lengthTwo) {
      case 1:
        newStr[2] = "000" + str.split("-")[2];
        break;
      case 2:
        newStr[2] = "00" + str.split("-")[2];
        break;
      case 3:
        newStr[2] = "0" + str.split("-")[2];
        break;
      case 4:
        newStr[2] = str.split("-")[2];
        break;
    }
    return newStr.join('');
}
